package cn.lili.timetask.handler.impl.activity;

import cn.lili.modules.promotion.client.ReturnActivityClient;
import cn.lili.timetask.handler.EveryHourExecute;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * 更新全返卷到期状态
 *
 * @author Chopper
 * @since 2021-02-21 09:47
 */
@RequiredArgsConstructor
@Component
public class ReturnActivityTaskExecute implements EveryHourExecute {

    private final ReturnActivityClient returnActivityClient;
    @Override
    public void execute() {
        returnActivityClient.updateBecomeDue();
    }
}
